﻿@model SpyApp.Models.AccountModel.LoginModel
@*@using SpyApp.Helpers;*@
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Style{
    <link href="~/Content/mycss/login.css" rel="stylesheet"/>
}

<div class="page-header">
    <h3>@ViewBag.Title</h3>
</div>

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken() // chặn sử dụng ở web khác
    @Html.ValidationSummary(true) // summary error

    <div class="form-signin form-post">
        <ol>
            <li class="form-row">
                <div class="form-column medium-12 xsmall-12 hidden">
                    @Html.LabelFor(m => m.Email)
                </div>
                <div class="form-column medium-12 xsmall-12">
                    @Html.TextBoxFor(m => m.Email, new { @class = "", placeholder = Html.DisplayNameFor(t => t.Email) })
                </div>
                <div class="form-column medium-12 xsmall-12">
                    @Html.ValidationMessageFor(m => m.Email)
                </div>
            </li>
            <li class="form-row">
                <div class="form-column medium-12 xsmall-12 hidden">
                    @Html.LabelFor(m => m.Password)
                </div>
                <div class="form-column medium-12 xsmall-12">
                    @Html.PasswordFor(m => m.Password, new { @class = "", placeholder = Html.DisplayNameFor(t => t.Password) })
                </div>
                <div class="form-column medium-12 xsmall-12">
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </li>
            <li class="form-row">
                <div class="form-column medium-12 xsmall-12 hidden"></div>
                <div class="form-column medium-12 xsmall-12">
                    @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.DisplayNameFor(m => m.RememberMe)
                </div>
            </li>
            <li class="form-row">
                <div class="form-column medium-12 xsmall-12 hidden"></div>
                <div class="form-column medium-12 xsmall-12">
                    <input type="submit" value="Log in" />
                </div>
            </li>
            <li class="form-row">
                <div class="form-column medium-12 xsmall-12">
                    @Html.ActionLink("Register", "Register", "Account")
                    <br />
                    @Html.ActionLink("Forgot Password", "ForgotPassword", "Account")
                </div>
            </li>
        </ol>
    </div>
}


@section Script {
    @Scripts.Render("~/bundles/jqueryval")
}